-- GENERATED SPELL FOR [Dragonmaw Battlemaster] --


function spell0_1037(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_1037', 15000, 1)
end

function Sorts_1037(pUnit, Event)
local choix_sorts_1037 = math.random(0, 0)
if choix_sorts_1037 == 0 then
pUnit:RegisterEvent('spell0_1037', 1, 1)
end
end

function mob1037_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1037', math.random(1500, 3000), 1)
end

function mob1037_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1037_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1037_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1037, 1, 'mob1037_Action')
RegisterUnitEvent(1037, 2, 'mob1037_Leave')
RegisterUnitEvent(1037, 3, 'mob1037_Kill')
RegisterUnitEvent(1037, 4, 'mob1037_Die')
